T
User-defined dialog result type. In most cases System.Object.ToString is used as the button content.
Cocktail Help Reference
ShowMessageAsync<T>(String,T,T,IEnumerable<T>,String) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IDialogManager Interface > ShowMessageAsync Method : ShowMessageAsync<T>(String,T,T,IEnumerable<T>,String) Method



message
The message to display.
defaultButton
Specifies the default button. The Enter key will be mapped to this button.
cancelButton
Specifies the designated cancel button. If the user clicks this button, the Task will be marked as cancelled.
dialogButtons
A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
title
Optional title of the message box.

Glossary Item Box

Displays a modal message box.

Syntax

Visual Basic (Declaration) 
Overloads Function ShowMessageAsync(Of T)( _
   ByVal message As String, _
   ByVal defaultButton As T, _
   ByVal cancelButton As T, _
   ByVal dialogButtons As IEnumerable(Of T), _
   Optional ByVal title As String _
) As Task(Of T)
Visual Basic (Usage)Copy Code
Dim instance As IDialogManager
Dim message As String
Dim defaultButton As T
Dim cancelButton As T
Dim dialogButtons As IEnumerable(Of T)
Dim title As String
Dim value As Task(Of T)
 
value = instance.ShowMessageAsync(Of T)(message, defaultButton, cancelButton, dialogButtons, title)
C# 
Task<T> ShowMessageAsync<T>( 
   string message,
   T defaultButton,
   T cancelButton,
   IEnumerable<T> dialogButtons,
   string title
)
C++/CLI 
Task<T^>^ ShowMessageAsyncgeneric<typename T>
( 
   String^ message,
   T^ defaultButton,
   T^ cancelButton,
   IEnumerable<T^>^ dialogButtons,
   String^ title
) 

Parameters

message
The message to display.
defaultButton
Specifies the default button. The Enter key will be mapped to this button.
cancelButton
Specifies the designated cancel button. If the user clicks this button, the Task will be marked as cancelled.
dialogButtons
A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
title
Optional title of the message box.

Type Parameters

T
User-defined dialog result type. In most cases System.Object.ToString is used as the button content.

Return Value

The dialog result.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.